<template>
	<view class="centent" v-if="king!=1">
		<view class="centent_left">
			<text>{{title}}</text>
			<text>{{content?content:'课程免费学习'}}</text>
		</view>
		<view class="centent_right">
			<text>即将结束</text>
			<u-count-down style="margin-top: 10rpx;" separator-color='#FFFFFF' color='#FF2424'
:timestamp="timestamp"></u-count-down>


		</view>
	</view>
</template>

<script>
	export default {
		props:['title','content','times','timestamp'],
		data() {
			return {
			king:'',
			};
		},
		onLoad(option) {
		}
	}
</script>

<style lang="scss">
	.centent {
		padding: 0 0rpx 0 35rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	
		.centent_right {
			width: 30%;
			border-left: 1px solid #FFFFFF;
			text-align: center;
	
			text {
				display: block;
			}
	
			text:nth-of-type(1) {
				font-size: 30rpx;
				font-family: Source Han Sans CN;
				font-weight: 500;
				color: #FFFFFF;
				opacity: 1;
			}
		}
	
		.centent_left {
			text {
				display: block;
			}
	
			text:nth-of-type(1) {
				font-size: 36rpx;
				font-family: Source Han Sans CN;
				font-weight: bold;
				color: #FFFFFF;
				opacity: 1;
			}
	
			text:nth-of-type(2) {
				font-size: 28rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #FFFFFF;
				opacity: 1;
				margin-top: 10rpx;
			}
		}
	}
	
	.centent {
		background-color: #FC2053;
		min-height: 140rpx;
	}
</style>
